<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<style type="text/css">
html {
  font-family: Arial,Helvetica,sans-serif;
  background-color: white;
  color: black;
}
table {
  border-collapse: collapse;
  empty-cells: show;
  margin: 1em 0em;
  border: 1px solid black;
}
th, td {
  border: 1px solid black;
  padding: 0.1em 0.2em;
  height: 1.5em;
  width: 12em;
}
td.colspan4, th.colspan4 {
    width: 48em;
}
td.colspan3, th.colspan3 {
    width: 36em;
}
td.colspan2, th.colspan2 {
    width: 24em;
}
th {
  background-color: rgb(192, 192, 192);
  color: black;
  height: 1.7em;
  font-weight: bold;
  text-align: center;
  letter-spacing: 0.1em;
}
td.name {
  background-color: rgb(240, 240, 240);
  letter-spacing: 0.1em;
}
td.name, th.name {
  width: 10em;
}
</style>
<title>Common Ws Resources</title>
</head>
<body>
<h1>Common Ws Resources</h1>
<table border="1" id="setting">
<tr>
<th class="name" colspan="5">Setting</th>
</tr>
<tr>
<td class="name">Library</td>
<td>HttpInterfaceLibrary.py</td>
<td>http://</td>
<td></td>
<td></td>
</tr>
<tr>
<td class="name">Library</td>
<td>OperatingSystem</td>
<td></td>
<td></td>
<td></td>
</tr>
<tr>
<td class="name">Resource</td>
<td>common_resources.html</td>
<td></td>
<td></td>
<td></td>
</tr>
<tr>
<td class="name"></td>
<td></td>
<td></td>
<td></td>
<td></td>
</tr>
</table>
<table border="1" id="variable">
<tr>
<th class="name" colspan="5">Variable</th>
</tr>
<tr>
<td class="name">${DEFAULT_CHANNEL}</td>
<td>WEBSERVICE</td>
<td></td>
<td></td>
<td></td>
</tr>
<tr>
<td class="name">${DEFAULT_LANG}</td>
<td>en</td>
<td></td>
<td></td>
<td></td>
</tr>
<tr>
<td class="name">${DEFAULT_DECIMAL_SEPARATOR}</td>
<td>,</td>
<td></td>
<td></td>
<td></td>
</tr>
<tr>
<td class="name">${DEFAULT_ADMIN_USER}</td>
<td>root</td>
<td></td>
<td></td>
<td></td>
</tr>
<tr>
<td class="name">${DEFAULT_ADMIN_PASSWORD}</td>
<td>root</td>
<td></td>
<td></td>
<td></td>
</tr>
<tr>
<td class="name"></td>
<td></td>
<td></td>
<td></td>
<td></td>
</tr>
</table>
<table border="1" id="keyword">
<tr>
<th class="name" colspan="5">Keyword</th>
</tr>
<tr>
<td class="name"><a name="keyword_Result Message Should Not Contain">Result Message Should Not Contain</a></td>
<td>[Arguments]</td>
<td>${unwanted_result_message}</td>
<td></td>
<td></td>
</tr>
<tr>
<td class="name"></td>
<td>Should Not Contain</td>
<td>${RESPONSE.resultMessage}</td>
<td>${unwanted_result_message}</td>
<td></td>
</tr>
<tr>
<td class="name"></td>
<td></td>
<td></td>
<td></td>
<td></td>
</tr>
<tr>
<td class="name"><a name="keyword_Result Message Should Contain">Result Message Should Contain</a></td>
<td>[Arguments]</td>
<td>${expected_result_message}</td>
<td></td>
<td></td>
</tr>
<tr>
<td class="name"></td>
<td>Should Contain</td>
<td>${RESPONSE.resultMessage}</td>
<td>${expected_result_message}</td>
<td>Received result message doesn't match the expected one</td>
</tr>
<tr>
<td class="name"></td>
<td></td>
<td></td>
<td></td>
<td></td>
</tr>
<tr>
<td class="name"><a name="keyword_Result Message Should Contain X Times">Result Message Should Contain X Times</a></td>
<td>[Arguments]</td>
<td>${expected_result_message}</td>
<td>${X}</td>
<td></td>
</tr>
<tr>
<td class="name"></td>
<td>Should Contain X Times</td>
<td>${RESPONSE.resultMessage}</td>
<td>${expected_result_message}</td>
<td>${X}</td>
</tr>
<tr>
<td class="name"></td>
<td></td>
<td></td>
<td></td>
<td></td>
</tr>
<tr>
<td class="name"><a name="keyword_Result Code Should Be">Result Code Should Be</a></td>
<td>[Arguments]</td>
<td>${expected_result_code}</td>
<td></td>
<td></td>
</tr>
<tr>
<td class="name"></td>
<td>Should Be Equal As Integers</td>
<td>${RESPONSE.resultCode}</td>
<td>${expected_result_code}</td>
<td>Received result code doesn't match the expected one</td>
</tr>
<tr>
<td class="name"></td>
<td></td>
<td></td>
<td></td>
<td></td>
</tr>
<tr>
<td class="name"><a name="keyword_Account Id Should Be">Account Id Should Be</a></td>
<td>[Arguments]</td>
<td>${expected_account_id}</td>
<td></td>
<td></td>
</tr>
<tr>
<td class="name"></td>
<td>${status}</td>
<td>${foo} =</td>
<td>Run Keyword And Ignore Error</td>
<td>Should Be Equal As Integers</td>
</tr>
<tr>
<td class="name"></td>
<td>...</td>
<td>${RESPONSE.accountInformation.account.accountId}</td>
<td>${expected_account_id}</td>
<td></td>
</tr>
<tr>
<td class="name"></td>
<td>Run Keyword If</td>
<td>'${status}' == 'FAIL'</td>
<td>Should Be Equal As Strings</td>
<td>${RESPONSE.accountInformation.account.accountId}</td>
</tr>
<tr>
<td class="name"></td>
<td>...</td>
<td>${expected_account_id}</td>
<td></td>
<td></td>
</tr>
<tr>
<td class="name"></td>
<td></td>
<td></td>
<td></td>
<td></td>
</tr>
<tr>
<td class="name"><a name="keyword_Account Type Should Be">Account Type Should Be</a></td>
<td>[Arguments]</td>
<td>${expected_account_type}</td>
<td></td>
<td></td>
</tr>
<tr>
<td class="name"></td>
<td>Should Be Equal As Strings</td>
<td>${RESPONSE.accountInformation.account.accountTypeId}</td>
<td>${expected_account_type}</td>
<td></td>
</tr>
<tr>
<td class="name"></td>
<td></td>
<td></td>
<td></td>
<td></td>
</tr>
<tr>
<td class="name"><a name="keyword_Account Balance Should Be">Account Balance Should Be</a></td>
<td>[Arguments]</td>
<td>${expected_number}</td>
<td></td>
<td></td>
</tr>
<tr>
<td class="name"></td>
<td>Should Be Equal As Numbers</td>
<td>${RESPONSE.accountInformation.balance.value}</td>
<td>${expected_number}</td>
<td></td>
</tr>
<tr>
<td class="name"></td>
<td></td>
<td></td>
<td></td>
<td></td>
</tr>
<tr>
<td class="name"><a name="keyword_New Random MSISDN">New Random MSISDN</a></td>
<td>${rand_number} =</td>
<td>Evaluate</td>
<td>random.randrange(100000,999999,1)</td>
<td>random</td>
</tr>
<tr>
<td class="name"></td>
<td>${msisdn} =</td>
<td>Catenate</td>
<td>SEPARATOR=</td>
<td>${DEFAULT_PREFIX}</td>
</tr>
<tr>
<td class="name"></td>
<td>...</td>
<td>${rand_number}</td>
<td></td>
<td></td>
</tr>
<tr>
<td class="name"></td>
<td>[Return]</td>
<td>${msisdn}</td>
<td></td>
<td></td>
</tr>
<tr>
<td class="name"></td>
<td></td>
<td></td>
<td></td>
<td></td>
</tr>
<tr>
<td class="name"><a name="keyword_Verify Transaction Response">Verify Transaction Response</a></td>
<td>[Documentation]</td>
<td class="colspan3" colspan="3">Checks that fields resultMessage, resultCode, and transactionReference are present.</td>
</tr>
<tr>
<td class="name"></td>
<td>Should Not Be Empty</td>
<td>${RESPONSE.resultMessage}</td>
<td></td>
<td></td>
</tr>
<tr>
<td class="name"></td>
<td>Should Not Be Empty</td>
<td>${RESPONSE.transactionReference}</td>
<td></td>
<td></td>
</tr>
<tr>
<td class="name"></td>
<td>Variable Should Exist</td>
<td>${RESPONSE.resultCode}</td>
<td></td>
<td></td>
</tr>
<tr>
<td class="name"></td>
<td></td>
<td></td>
<td></td>
<td></td>
</tr>
<tr>
<td class="name"><a name="keyword_Validate Transfered Amount">Validate Transfered Amount</a></td>
<td>[Arguments]</td>
<td>${amount}</td>
<td>${sender_before_balance}</td>
<td>${sender_after_balance}</td>
</tr>
<tr>
<td class="name"></td>
<td>...</td>
<td>${receiver_before_balance}</td>
<td>${receiver_after_balance}</td>
<td></td>
</tr>
<tr>
<td class="name"></td>
<td>${withdrawn_amount} =</td>
<td>Evaluate</td>
<td>${sender_before_balance} - ${sender_after_balance}</td>
<td></td>
</tr>
<tr>
<td class="name"></td>
<td>${deposited_amount} =</td>
<td>Evaluate</td>
<td>${receiver_after_balance} - ${receiver_before_balance}</td>
<td></td>
</tr>
<tr>
<td class="name"></td>
<td>Should Be Equal As Numbers</td>
<td>${withdrawn_amount}</td>
<td>${deposited_amount}</td>
<td>The amount deposited is not the same as the amount withdrawn. Is margins defined?</td>
</tr>
<tr>
<td class="name"></td>
<td>Should Be Equal As Numbers</td>
<td>${withdrawn_amount}</td>
<td>${amount}</td>
<td></td>
</tr>
<tr>
<td class="name"></td>
<td></td>
<td></td>
<td></td>
<td></td>
</tr>
<tr>
<td class="name"><a name="keyword_Clear SUDS Cache">Clear SUDS Cache</a></td>
<td>${suds_tmp_dir} =</td>
<td>Join Path</td>
<td>${TEMPDIR}</td>
<td>suds</td>
</tr>
<tr>
<td class="name"></td>
<td>Remove Directory</td>
<td>${suds_tmp_dir}</td>
<td>recursive</td>
<td></td>
</tr>
<tr>
<td class="name"></td>
<td></td>
<td></td>
<td></td>
<td></td>
</tr>
<tr>
<td class="name"><a name="keyword_Check WSDL Availability">Check WSDL Availability</a></td>
<td>[Arguments]</td>
<td>${url_to_wsdl}</td>
<td></td>
<td></td>
</tr>
<tr>
<td class="name"></td>
<td>Wait Until Keyword Succeeds</td>
<td>2 min</td>
<td>5 sec</td>
<td>Get Url</td>
</tr>
<tr>
<td class="name"></td>
<td>...</td>
<td>${url_to_wsdl}</td>
<td></td>
<td></td>
</tr>
<tr>
<td class="name"></td>
<td></td>
<td></td>
<td></td>
<td></td>
</tr>
<tr>
<td class="name"><a name="keyword_Error Description Should Contain">Error Description Should Contain</a></td>
<td>[Arguments]</td>
<td>${expected_result_message}</td>
<td></td>
<td></td>
</tr>
<tr>
<td class="name"></td>
<td>Should Contain</td>
<td>${RESPONSE.errorDescription}</td>
<td>${expected_result_message}</td>
<td>Received error message doesn't match the expected one</td>
</tr>
</table>
</body>
</html>
